FROM registry.cn-hangzhou.aliyuncs.com/jk/apache-tomcat-9:v0.70
MAINTAINER chendw <chendw@bsoft.com.cn>

ARG  NAMESPACE=hc
ARG  APP_VERSION=0.0.1-SNAPSHOT
ARG  APP_NAME
ENV HOST_RPC=false \
  NAMESPACE="${NAMESPACE}" \
  APP_VERSION="0.0.1-SNAPSHOT" \
  APP_NAME="${APP_NAME}" \
  ZK_SVR="zookeeper:2181" \
  RPC_SVR="0.0.0.0:9006" \
  DB_SVR="10.10.22.181" \
  DB_PORT="3306" \
  DB_NAME="com.bsoft.gol.editor.editor" \
  DB_USER="root" \
  ACCESS_TOKEN="61c52751d3a14e003c7cf7b2" \
  INDEXTREE_URL="http://hc.zk.atag.bsoft.com.cn/common-clinical" \
  DB_PASS="IkoYifewrqLgzh3ncFNwnEqcw5yyjyaYeofaG9S1os0EDK3Yt44d37q1Wi2mjNiOQM8SEU5q0jcnbmpHEx2EFg=="\
  #二维码导出默认机构头像图片
  QR_CODE_IMAGE_ORG="6389b657b2e3f60054dc5528"\
  #二维码导出默认医生头像图片
  QR_CODE_IMAGE_DOCT="6389b657b2e3f60054dc5528"\
  #二维码导出默认医生头像图片
  IMAGE_DOWNLOAD_URL="https://jkt.bsoft.com.cn/hcn-bbp-dist-zk/upload/"\
  IMAGE_URL="https\://hol.bsoft.com.cn/file-zk/"




COPY ops/docker/com.bsoft.gol.editor.init.sh /script/com.bsoft.gol.editor.init.sh
RUN  rm -rf /usr/local/tomcat/webapps/* && chmod +x /script/com.bsoft.gol.editor.init.sh

COPY target/hcn-com.bsoft.gol.editor.editor/  /usr/local/tomcat/webapps/followup
CMD ["/script/com.bsoft.gol.editor.init.sh"]
